<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>币种代码 - TMS</title>
    <link rel="stylesheet" href="/view/frame/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/view/frame/static/css/global.css?v=1.0">
    <link rel="stylesheet" href="/view/tms/static/css/iframe.css?v=1.0">
  </head>
  <body>
    <!--start: 搜索-->
    <div class="panel-handle search-bar">
      <form class="layui-form layui-form-pane">
        <div class="layui-inline">
          <div class="layui-input-inline">
            <select name="exact">
              <option value="0" selected="selected">模糊查询</option>
              <option value="1">精确查询</option>
            </select>
          </div>
        </div>
        <div class="layui-inline">
          <div class="layui-input-inline">
            <select name="type">
              <option value="0" selected="selected">代码</option>
              <option value="1">中文名称</option>
            </select>
          </div>
        </div>
        <div class="layui-inline">
          <div class="layui-input-inline">
            <input type="text" name="name" style="width:300px;" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
          </div>
        </div>
        <button type="button" class="layui-btn layui-btn-danger" lay-submit lay-filter="search"><i class="layui-icon">&#xe615;</i>查询</button>
      </form>
    </div>
    <!--end: 搜索-->

    <!--start:表格列表-->
    <table class="layui-hide" id="table_list"></table>
    <!--end:表格列表-->
  </body>
  <script charset="utf-8" src="/view/frame/layui/layui.js"></script>
  <script charset="utf-8" src="/view/frame/static/js/jquery.min.js?v=1.0"></script>
  <script charset="utf-8" src="/view/frame/static/js/jquery.cookie.min.js?v=1.0"></script>
  <script charset="utf-8" src="/view/tms/static/js/tms_comm.js?v=1.0"></script>
  <script charset="utf-8" src="/view/tms/static/js/tms_index.js?v=1219"></script>
  <script charset="utf-8" src="/view/frame/static/js/tms_common/utils.js?v=1.0"></script>
  
  <script charset="utf-8" src="/view/frame/static/js/errorCodeMap.js"></script>
  <script charset="utf-8" src="/view/frame/static/js/HC.js?v=1.4"></script>
  <script charset="utf-8" src="/view/tms/static/js/validator.js"></script>
  <script charset="utf-8" src="/view/tms/static/js/bizUtil.js"></script>
  
  <script>
  layui.use(['form', 'layer', 'table'], function(){
    var $form = layui.form,
        $layer = layui.layer,
        $table = layui.table,
        $ = layui.jquery;

    var options = {
      "seachOptions":{
        "rely": $form,
        "condition": ["exact","type","name"],
        "getParameter": ""
      },

      "tableOptions": {
        cols: [[
          {field:'code', title: '代码', width:80},
          {field:'nameCn', title: '中文名称', width:200},
          {field:'status', title: '状态', width:120, templet:"#statusTpl"}
        ]],
        url: '/ucenter/code/common/common/getCurrencyCode.shtml',
        where: {"exact" : false, "code" : ""}
      }   
    }

    tmsCommonTable.init(options, $table);
  });
  </script>
  <script type="text/html" id="statusTpl">
    {{#  if(d.status == '1'){ }}
      启用
    {{#  } else { }}
      停用
    {{#  } }}
  </script>
</html>